package com.ozo.cloud.api.auth.feign;

import com.ozo.cloud.common.base.model.LoginUser;
import com.ozo.cloud.common.base.model.ResultVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 授权服务调用
 *
 * @author qiangesoft
 * @date 2024-09-11
 */
@FeignClient(name = "ozo-cloud-auth", path = "/auth")
public interface AuthFeignClient {

    @GetMapping("/checkToken")
    ResultVO<LoginUser> checkToken(@RequestParam("token") String token);

}
